using System;
using System.Runtime.Serialization;
using SystemFrameworks.ExceptionManagers;  
using SystemFrameworks.DataAccess;

namespace SystemFrameworks.DataAccess
{
	/// <summary>
	/// Summary description for DbException.
	/// </summary>
	
	[Serializable]
	public class DbException :BaseApplicationException
	{
		public static int ERROR_CONFIG = 0 ;      
		public static int ERROR_LINK   = 1;         
		public static int ERROR_ACCESS  = 2 ;     
		public static int ERROR_EXECUTE = 3 ;     

		private static ExceptionLevel m_intLevel  = ExceptionLevel.OutSystem; 
		public DbException()  : base()
		{
			//
			// TODO: Add constructor logic here
			//
		}
		// Constructor with exception message
		public DbException(string message) : base(message)
		{

		}
		// Constructor with exception message
		public DbException(string message,int intSubType) : base(message,m_intLevel,intSubType)
		{

		}
		// Constructor with exception message
		public DbException(string message,Exception inner,ExceptionLevel m_intLevel) : base(message,inner,m_intLevel)
		{

		}
		// Constructor with message and inner exception
		public DbException(string message, Exception inner) : base(message,inner)
		{

		}
		// Constructor with exception message
		public DbException(string message,Exception inner,int intSubType) : base(message,inner,m_intLevel,intSubType)
		{

		}

		// Protected constructor to de-serialize data
		protected DbException(SerializationInfo info, StreamingContext context) : base(info, context)
		{

		}


	}
}

